package com.ruoyi.finance.livestreaming.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 抵扣金额变化记录
 * </p>
 *
 * @author wangmh
 * @since 2023-10-21
 */
@TableName("sz_deduction_amount_record")
@ApiModel(value = "SzDeductionAmountRecord对象", description = "抵扣金额变化记录")
public class SzDeductionAmountRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("变化金额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty("变动类型")
    @TableField("type")
    private String type;

    @ApiModelProperty("创建人")
    @TableField("create_user")
    private Long createUser;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("订单id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty("变化前金额")
    @TableField("befor_amount")
    private BigDecimal beforAmount;

    @ApiModelProperty("变化后金额")
    @TableField("after_amount")
    private BigDecimal afterAmount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    public BigDecimal getBeforAmount() {
        return beforAmount;
    }

    public void setBeforAmount(BigDecimal beforAmount) {
        this.beforAmount = beforAmount;
    }
    public BigDecimal getAfterAmount() {
        return afterAmount;
    }

    public void setAfterAmount(BigDecimal afterAmount) {
        this.afterAmount = afterAmount;
    }

    @Override
    public String toString() {
        return "SzDeductionAmountRecord{" +
            "id=" + id +
            ", userId=" + userId +
            ", amount=" + amount +
            ", type=" + type +
            ", createUser=" + createUser +
            ", createTime=" + createTime +
            ", orderId=" + orderId +
            ", beforAmount=" + beforAmount +
            ", afterAmount=" + afterAmount +
        "}";
    }
}
